Write a program of inverted right triangle pattern in python - Inverted Right Triangle Pattern program in python - Python Programs - Pattern programs in python

 Inverted Right Triangle Pattern



Python Code:

# inverted right triangle pattern

n = 5

for i in range(n):

    for j in range(n - i):

        print('*', end='')

    print('')


Output

*****

****

***

**

*

Here is the Practical of the above program in Jupyter Notebook



Comments